<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script type="text/javascript">

    var stus = [{id:1,name:'zhangsan',age:10,scorce:80},{id:2,name:'lisi',age:15,scorce:70},{id:3,name:'wangwu',age:12,scorce:75}];
    stus.sort(function(stu1,stu2){
      return stu2.scorce-stu1.scorce;
    });
    console.log(stus);


  </script>
</head>
<body>
  hello html
</body>
</html>